package com.rules.admin.entity;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rules.admin.json.Long2String;
import com.rules.admin.json.String2Long;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName(
        "RUL_DATASOURCE"
)
public class DataSourceModel implements Serializable {
    @JsonSerialize(
            using = Long2String.class
    )
    @JsonDeserialize(
            using = String2Long.class
    )
    @TableId
    private Long id;

    private String projectId;

    private String projectCode;

    private String datasourceName;

    private String url;

    private String username;

    private String password;

    private String remark;

    private String createrId;

    private Date createTime;

    private String updaterId;

    private String updateTime;

    private Date latestTime;

    private Boolean idDelete;
    private static final long serialVersionUID = 1L;

    public DataSourceModel() {
    }


}
